package br.edu.ufcg.lp2;

import static org.junit.Assert.*;

import org.junit.Test;

public class NameComparatorTest {


	@Test
	public void test() throws Exception {
		NameComparator test = new NameComparator();
		Name joao = new Name("Joao", "Biblico");
		Name pedro = new Name("Pedro", "Biblico");
		Name joao2 = new Name("Joao", "Biblico");
		assertEquals(-6, test.compare(joao, pedro));
		assertEquals(0, test.compare(joao, joao2));
		assertEquals(6, test.compare(pedro, joao2));
	}

}